import pyautogui  # opencv
import webbrowser
import time
import pyautogui as auto

time.sleep(5)

pyautogui.moveTo(176,287), pyautogui.click(176,287)
auto.typewrite('ping www.baidu.com',interval=0.25)
time.sleep(1)
pyautogui.press ('enter')
time.sleep(1)
pyautogui.hotkey('ctrl', 'c')
auto.typewrite('cd /etc/yum.repos.d',interval=0.25)
pyautogui.press ('enter')
time.sleep(1)
auto.typewrite('cat CentOS-Base.repo',interval=0.25)
pyautogui.press ('enter')
time.sleep(1)
auto.typewrite('mkdir backup',interval=0.25)
pyautogui.press ('enter')
time.sleep(1)
auto.typewrite('mv *.repo backup',interval=0.25)
pyautogui.press ('enter')
time.sleep(1)
auto.typewrite('wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo',interval=0.25)
pyautogui.press ('enter')
time.sleep(7)
auto.typewrite(' wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo',interval=0.25)
pyautogui.press ('enter')
time.sleep(6)
auto.typewrite('cat /etc/yum.repos.d/CentOS-Base.repo',interval=0.25)
pyautogui.press ('enter')
time.sleep(2)
auto.typewrite('yum clean all && yum repolist all ',interval=0.25)
pyautogui.press ('enter')
time.sleep(25)
auto.typewrite('yum install -y sl',interval=0.25)
pyautogui.press ('enter')
time.sleep(15)
auto.typewrite('sl -a',interval=0.25)
pyautogui.press ('enter')
time.sleep(15)
auto.typewrite('yum install -y cowsay',interval=0.25)
pyautogui.press ('enter')
time.sleep(15)
auto.typewrite('cowsay -l ',interval=0.25)
pyautogui.press ('enter')
time.sleep(5)
auto.typewrite('cowsay -f sheep yjs212-32-luo shui yu',interval=0.25)
pyautogui.press ('enter')
